<%@ page import="inspur.dao.BookDao" %>
<%@ page import="java.sql.Array" %>
<%@ page import="java.util.ArrayList" %>
<%@ page import="inspur.entity.BookObject" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/10/22
  Time: 19:46
  领养主页
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="config.jsp"%>
<!DOCTYPE HTML>
<html>
<head>
    <title><%=webTitle%></title>
    <meta name="Keywords" content="<%=keywords%>">
    <meta name="Description" content="<%=Description%>">
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
    <div align="center">
        <%@include file="component/top.jsp"%><!---顶栏-->
        <%@include file="component/checkBox.jsp"%><!--搜索框-->
        <div style="width: 1000px;">
            <!--介绍-->


            <style>

            </style>
            <div  id="table" style="width: 1000px;margin: 0 auto;border: 0px solid green">
                <p class="t2g">浏览全部图书：</p>

                <hr>
                <table style="width:1000px;">
                    <tr>
                        <td width="200px " valign="top"><p>书籍名称：</p></td>
                        <td width="200px" valign="top"> <p>书籍出版社：</p></td>
                        <td valign="top"><p>书籍介绍：</p></td>
                    </tr>


                    <%
                        ArrayList<BookObject> ay=BookDao.SelectAllBook();
                        for (BookObject a:ay
                                ) {
                            out.print("<tr>");
                            out.println("<td><a class='a2' href='book.jsp?id="+a.getId()+"'>"+a.getBookName()+"</p></td>");
                            out.println("<td><a class='a2' href='check_result.jsp?press="+a.getPress()+"'>"+a.getPress()+"</p></td>");
                            out.println("<td><a class='a2' href='"+a.getId()+"'>"+a.getIntroduction()+"</p><br></td>");
                            out.print("</tr>");


                        }
                    %>
                </table>
                <hr>
            </div>



        </div>
    </div>
</body>
</html>
